pdbfile: Avoid errors and warnings when changing gbsize_t to a 64-bit type.
authoroliskoli <oliskoli>
Sun, 13 Apr 2008 20:59:45 +0000 (20:59 +0000)
committeroliskoli <oliskoli>
Sun, 13 Apr 2008 20:59:45 +0000 (20:59 +0000)
pdbfile.c
pdbfile.h

index bade3d5671537e89dd04f9dad20f295ee8a63020..3d53c7bea9be2f52e3b8e11cc7a4040df1442c70 100644 (file)
--- a/pdbfile.c
+++ b/pdbfile.c
@@ -50,7 +50,7 @@ pdb_invalid_file(const pdbfile *pdb_in, const char *fmt, ...)
 /* try to read to EOF (avoid determining file-size) */
 
 static void *
-pdb_read_tail(gbfile *fin, gbint32 *size)
+pdb_read_tail(gbfile *fin, gbuint32 *size)
 {
        int count;
        char buff[256];
@@ -176,7 +176,7 @@ pdb_load_data(pdbfile *fin)
                        offs += fin->appinfo_len;
                }
                else {
-                       gbint32 size;
+                       gbuint32 size;
                        fin->appinfo = pdb_read_tail(fin->file, &size);
                        fin->appinfo_len = size;
                        offs += size;
index 0ad8237cd53402b096b8fea4ca6d81fef3fd0204..4bef52211f286933a195b9d80e7de7b22dac4022 100644 (file)
--- a/pdbfile.h
+++ b/pdbfile.h
@@ -39,8 +39,8 @@
 #define EPOCH_1904             2082844800L
 
 typedef struct pdbrec_s {
-       gbint32  offs;
-       gbint32  size;
+       gbuint32  offs;
+       gbuint32  size;
        gbuint32 id;
        gbuint8  category;
        gbuint8  flags;